// Tencent is pleased to support the open source community by making GAutomator available.
// Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.

// Licensed under the MIT License (the "License"); you may not use this file except in 
// compliance with the License. You may obtain a copy of the License at
// http://opensource.org/licenses/MIT

// Unless required by applicable law or agreed to in writing, software distributed under the License is
// distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
// either express or implied. See the License for the specific language governing permissions and
// limitations under the License.

//
//  CGITask.h
//  iOSDemo
//
//  Created by caoshaokun on 16/11/23.
//  Copyright © 2016 Tencent. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : int32_t {
    ChannelType_ShortConn = 1,
    ChannelType_LongConn = 2,
    ChannelType_All = 3
} ChannelType;

typedef enum : int32_t{
    MARS_CMDID_REGISTER            = 1000,    //注册消息cmd
    MARS_CMDID_SEND_MSG            = 1001,    //发送消息cmd
    MARS_CMDID_FRIEND_APPLY        = 1002,    //加好友申请消息
    MARS_CMDID_FRIEND_APPLY_AGREE  = 1003,    //同意加好友申请
    MARS_CMDID_FRIEND_APPLY_REFUSE = 1004,    //拒绝加好友申请
    MARS_CMDID_SEVER_GET_MSG       = 2000,    //服务端返回的消息 已到达服务器
    MARS_CMDID_CLIENT_GET_MSG      = 2001,    //客户端收到消息的
    
    MARS_CMDID_SEND_CMDMSG         = 3000,     //透穿消息
    
    
    
}MARS_CMDID_TYPE;


@interface CGITask : NSObject

- (id)init;

- (id)initAll:(ChannelType)ChannelType AndCmdId:(MARS_CMDID_TYPE)cmdtype AndCGIUri:(NSString*)cgiUri AndHost:(NSString*)host;

@property(nonatomic) uint32_t       taskid;
@property(nonatomic) ChannelType    channel_select;
@property(nonatomic) MARS_CMDID_TYPE  cmdtype;
@property(nonatomic, copy) NSString *cgi;
@property(nonatomic, copy) NSString *host;

@end
